package cn.gzjp.modules.it.entity;

import org.hibernate.validator.constraints.Length;

import cn.gzjp.common.persistence.DataEntity;
import cn.gzjp.common.utils.excel.annotation.ExcelField;

/**
 * 一键挪车Entity
 * @author zengcp
 * @version 2018-02-02
 */
public class CarMove extends DataEntity<CarMove> {
	
	private static final long serialVersionUID = 1L;
	private String chepai;		// 车牌
	private String mobile;		// 手机号
	private String carImg;		// 挡车照片
	private int status;		// 0 违停已处理 1超时  2 已举报
	private String memberId;		// 会员
	private String address;
	private String currentFlag;//当前待处理
	private String countdown;//倒计时
	public CarMove() {
		super();
	}

	public CarMove(String id){
		super(id);
	}

	@Length(min=0, max=32, message="车牌长度必须介于 0 和 32 之间")
	@ExcelField(title="车牌", align=2, sort=1)
	public String getChepai() {
		return chepai;
	}

	public void setChepai(String chepai) {
		this.chepai = chepai;
	}
	
	@Length(min=0, max=11, message="手机号长度必须介于 0 和 11 之间")
	@ExcelField(title="手机号", align=2, sort=2)
	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	
	@Length(min=0, max=256, message="挡车照片长度必须介于 0 和 256 之间")
	@ExcelField(title="挡车照片", align=2, sort=3)
	public String getCarImg() {
		return carImg;
	}

	public void setCarImg(String carImg) {
		this.carImg = carImg;
	}
	
	@Length(min=0, max=1, message="0 违停已处理 1超时  2 已举报长度必须介于 0 和 1 之间")
	@ExcelField(title="0 违停已处理 1超时  2 已举报", align=2, sort=4)
	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}
	
	@Length(min=0, max=32, message="会员长度必须介于 0 和 32 之间")
	@ExcelField(title="会员", align=2, sort=5)
	public String getMemberId() {
		return memberId;
	}

	public void setMemberId(String memberId) {
		this.memberId = memberId;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getCurrentFlag() {
		return currentFlag;
	}

	public void setCurrentFlag(String currentFlag) {
		this.currentFlag = currentFlag;
	}

	public String getCountdown() {
		return countdown;
	}

	public void setCountdown(String countdown) {
		this.countdown = countdown;
	}
	
}